///////////////////////////////////////////////////////////////////////////////
// Project: Hoyo Client Game
//
// hy_player_db_logic.h
// Created: 2013-7-15
// Author: Like Cheng
///////////////////////////////////////////////////////////////////////////////
#pragma once
#include "hy_includes.h"

class hy_player_db_logic : public hy_object
{
public:
	hy_player_db_logic();
	virtual ~hy_player_db_logic();

	static hy_player_db_logic*	instance();
	static void					purge_instance();
public:

	void						load_player_data_by_db( int player_id, bool is_update = false );
	bool						save_player_data_by_db( int player_id );

};